// source --> https://tafi-gmbh.de/wp-content/plugins/cookie-notice/js/front.min.js?ver=1.3.2 !function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){function t(e){return new RegExp("(^| )"+e+"( |$)")}function e(e,t,n){for(var i=0;iparseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.adjustOffset=function(){var e=r.getElementById("coronabar"),t=r.getElementById("wpadminbar"),n=0,i=0;"top"===cnArgs.position&&null!==t&&(i=t.offsetHeight,this.noticeContainer.style.top=i+"px"),null!==e&&(n=e.offsetHeight-1,"top"===cnArgs.position?(e.style.top=i+"px",this.noticeContainer.style.top=n+i+"px"):this.noticeContainer.style.bottom=n+"px")},this.getClosest=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1 https://tafi-gmbh.de/wp-content/themes/wpresidence/js/bootstrap.min.js?ver=1.0 /*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); // source --> https://tafi-gmbh.de/wp-content/themes/wpresidence/js/all_external.min.js?ver=1.0 (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof module!=="undefined"&&module.exports){module.exports=a(require("jquery"))}else{a(jQuery)}}})(function(h){var b=-1,g=-1;var e=function(i){return parseFloat(i)||0};var f=function(m){var i=1,k=h(m),j=null,l=[];k.each(function(){var n=h(this),p=n.offset().top-e(n.css("margin-top")),o=l.length>0?l[l.length-1]:null;if(o===null){l.push(n)}else{if(Math.floor(Math.abs(j-p))<=i){l[l.length-1]=o.add(n)}else{l.push(n)}}j=p});return l};var d=function(i){var j={byRow:true,property:"height",target:null,remove:false};if(typeof i==="object"){return h.extend(j,i)}if(typeof i==="boolean"){j.byRow=i}else{if(i==="remove"){j.remove=true}}return j};var a=h.fn.matchHeight=function(i){var k=d(i);if(k.remove){var j=this;this.css(k.property,"");h.each(a._groups,function(l,m){m.elements=m.elements.not(j)});return this}if(this.length<=1&&!k.target){return this}a._groups.push({elements:this,options:k});a._apply(this,k);return this};a.version="master";a._groups=[];a._throttle=80;a._maintainScroll=false;a._beforeUpdate=null;a._afterUpdate=null;a._rows=f;a._parse=e;a._parseOptions=d;a._apply=function(o,k){var m=d(k),l=h(o),n=[l];var p=h(window).scrollTop(),j=h("html").outerHeight(true);var i=l.parents().filter(":hidden");i.each(function(){var q=h(this);q.data("style-cache",q.attr("style"))});i.css("display","block");if(m.byRow&&!m.target){l.each(function(){var q=h(this),r=q.css("display");if(r!=="inline-block"&&r!=="flex"&&r!=="inline-flex"){r="block"}q.data("style-cache",q.attr("style"));q.css({display:r,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})});n=f(l);l.each(function(){var q=h(this);q.attr("style",q.data("style-cache")||"")})}h.each(n,function(s,t){var r=h(t),q=0;if(!m.target){if(m.byRow&&r.length<=1){r.css(m.property,"");return}r.each(function(){var u=h(this),w=u.attr("style"),x=u.css("display");if(x!=="inline-block"&&x!=="flex"&&x!=="inline-flex"){x="block"}var v={display:x};v[m.property]="";u.css(v);if(u.outerHeight(false)>q){q=u.outerHeight(false)}if(w){u.attr("style",w)}else{u.css("display","")}})}else{q=m.target.outerHeight(false)}r.each(function(){var v=h(this),u=0;if(m.target&&v.is(m.target)){return}if(v.css("box-sizing")!=="border-box"){u+=e(v.css("border-top-width"))+e(v.css("border-bottom-width"));u+=e(v.css("padding-top"))+e(v.css("padding-bottom"))}v.css(m.property,(q-u)+"px")})});i.each(function(){var q=h(this);q.attr("style",q.data("style-cache")||null)});if(a._maintainScroll){h(window).scrollTop((p/j)*h("html").outerHeight(true))}return this};a._applyDataApi=function(){var i={};h("[data-match-height], [data-mh]").each(function(){var k=h(this),j=k.attr("data-mh")||k.attr("data-match-height");if(j in i){i[j]=i[j].add(k)}else{i[j]=k}});h.each(i,function(){this.matchHeight(true)})};var c=function(i){if(a._beforeUpdate){a._beforeUpdate(i,a._groups)}h.each(a._groups,function(){a._apply(this.elements,this.options)});if(a._afterUpdate){a._afterUpdate(i,a._groups)}};a._update=function(k,j){if(j&&j.type==="resize"){var i=h(window).width();if(i===b){return}b=i}if(!k){c(j)}else{if(g===-1){g=setTimeout(function(){c(j);g=-1},a._throttle)}}};h(a._applyDataApi);h(window).bind("load",function(i){a._update(false,i)});h(window).bind("resize orientationchange",function(i){a._update(true,i)})}); /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function(a,x,i,u){var k=i("html"),g=i(a),e=i(x),j=i.fancybox=function(){j.open.apply(this,arguments)},o=navigator.userAgent.match(/msie/i),d=null,A=x.createTouch!==u,y=function(b){return b&&b.hasOwnProperty&&b instanceof i},c=function(b){return b&&"string"===i.type(b)},z=function(b){return c(b)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,f){if(b&&(i.isPlainObject(f)||(f={}),!1!==j.close(!0))){return i.isArray(b)||(b=y(b)?i(b).get():[b]),i.each(b,function(v,w){var q={},t,s,r,n,p;"object"===i.type(w)&&(w.nodeType&&(w=i(w)),y(w)?(q={href:w.data("fancybox-href")||w.attr("href"),title:w.data("fancybox-title")||w.attr("title"),isDom:!0,element:w},i.metadata&&i.extend(!0,q,w.metadata())):q=w);t=f.href||q.href||(c(w)?w:null);s=f.title!==u?f.title:q.title||"";n=(r=f.content||q.content)?"html":f.type||q.type;!n&&q.isDom&&(n=w.data("fancybox-type"),n||(n=(n=w.prop("class").match(/fancybox\.(\w+)/))?n[1]:null));c(t)&&(n||(j.isImage(t)?n="image":j.isSWF(t)?n="swf":"#"===t.charAt(0)?n="inline":c(w)&&(n="html",r=w)),"ajax"===n&&(p=t.split(/\s+/,2),t=p.shift(),p=p.shift()));r||("inline"===n?t?r=i(c(t)?t.replace(/.*(?=#[^\s]+$)/,""):t):q.isDom&&(r=w):"html"===n?r=t:!n&&(!t&&q.isDom)&&(n="inline",r=w));i.extend(q,{href:t,type:n,content:r,title:s,selector:p});b[v]=q}),j.opts=i.extend(!0,{},j.defaults,f),f.keys!==u&&(j.opts.keys=f.keys?i.extend({},j.defaults.keys,f.keys):!1),j.group=b,j._start(j.opts.index)}},cancel:function(){var b=j.coming;b&&!1!==j.trigger("onCancel")&&(j.hideLoading(),j.ajaxLoad&&j.ajaxLoad.abort(),j.ajaxLoad=null,j.imgPreload&&(j.imgPreload.onload=j.imgPreload.onerror=null),b.wrap&&b.wrap.stop(!0,!0).trigger("onReset").remove(),j.coming=null,j.current||j._afterZoomOut(b))},close:function(b){j.cancel();!1!==j.trigger("beforeClose")&&(j.unbindEvents(),j.isActive&&(!j.isOpen||!0===b?(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),j._afterZoomOut()):(j.isOpen=j.isOpened=!1,j.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),j.wrap.stop(!0,!0).removeClass("fancybox-opened"),j.transitions[j.current.closeMethod]())))},play:function(b){var l=function(){clearTimeout(j.player.timer)},f=function(){l();j.current&&j.player.isActive&&(j.player.timer=setTimeout(j.next,j.current.playSpeed))},n=function(){l();e.unbind(".player");j.player.isActive=!1;j.trigger("onPlayEnd")};if(!0===b||!j.player.isActive&&!1!==b){if(j.current&&(j.current.loop||j.current.index=n.index?"next":"prev"],j.router=f||"jumpto",n.loop&&(0>b&&(b=n.group.length+b%n.group.length),b%=n.group.length),n.group[b]!==u&&(j.cancel(),j._start(b)))},reposition:function(b,n){var l=j.current,p=l?l.wrap:null,f;p&&(f=j._getPosition(n),b&&"scroll"===b.type?(delete f.position,p.stop(!0,!0).animate(f,200)):(p.css(f),l.pos=i.extend({},l.dim,f)))},update:function(b){var l=b&&b.type,f=!l||"orientationchange"===l;f&&(clearTimeout(d),d=null);j.isOpen&&!d&&(d=setTimeout(function(){var n=j.current;n&&!j.isClosing&&(j.wrap.removeClass("fancybox-tmp"),(f||"load"===l||"resize"===l&&n.autoResize)&&j._setDimension(),"scroll"===l&&n.canShrink||j.reposition(b),j.trigger("onUpdate"),d=null)},f&&!A?0:300))},toggle:function(b){j.isOpen&&(j.current.fitToView="boolean"===i.type(b)?b:!j.current.fitToView,A&&(j.wrap.removeAttr("style").addClass("fancybox-tmp"),j.trigger("onUpdate")),j.update())},hideLoading:function(){e.unbind(".loading");i("#fancybox-loading").remove()},showLoading:function(){var b,f;j.hideLoading();b=i('
').click(j.cancel).appendTo("body");e.bind("keydown.loading",function(l){if(27===(l.which||l.keyCode)){l.preventDefault(),j.cancel()}});j.defaults.fixed||(f=j.getViewport(),b.css({position:"absolute",top:0.5*f.h+f.y,left:0.5*f.w+f.x}))},getViewport:function(){var b=j.current&&j.current.locked||!1,f={x:g.scrollLeft(),y:g.scrollTop()};b?(f.w=b[0].clientWidth,f.h=b[0].clientHeight):(f.w=A&&a.innerWidth?a.innerWidth:g.width(),f.h=A&&a.innerHeight?a.innerHeight:g.height());return f},unbindEvents:function(){j.wrap&&y(j.wrap)&&j.wrap.unbind(".fb");e.unbind(".fb");g.unbind(".fb")},bindEvents:function(){var b=j.current,f;b&&(g.bind("orientationchange.fb"+(A?"":" resize.fb")+(b.autoCenter&&!b.locked?" scroll.fb":""),j.update),(f=b.keys)&&e.bind("keydown.fb",function(n){var p=n.which||n.keyCode,l=n.target||n.srcElement;if(27===p&&j.coming){return !1}!n.ctrlKey&&(!n.altKey&&!n.shiftKey&&!n.metaKey&&(!l||!l.type&&!i(l).is("[contenteditable]")))&&i.each(f,function(r,q){if(1p[0].clientWidth||p[0].clientHeight&&p[0].scrollHeight>p[0].clientHeight),p=i(p).parent()}if(0!==s&&!n&&1q||0>l){j.next(0>q?"up":"right")}}r.preventDefault()}}))},trigger:function(b,l){var f,n=l||j.coming||j.current;if(n){i.isFunction(n[b])&&(f=n[b].apply(n,Array.prototype.slice.call(arguments,1)));if(!1===f){return !1}n.helpers&&i.each(n.helpers,function(q,p){if(p&&j.helpers[q]&&i.isFunction(j.helpers[q][b])){j.helpers[q][b](i.extend(!0,{},j.helpers[q].defaults,p),n)}});e.trigger(b)}},isImage:function(b){return c(b)&&b.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(b){return c(b)&&b.match(/\.(swf)((\?|#).*)?$/i)},_start:function(b){var l={},f,n;b=h(b);f=j.group[b]||null;if(!f){return !1}l=i.extend(!0,{},j.opts,f);f=l.margin;n=l.padding;"number"===i.type(f)&&(l.margin=[f,f,f,f]);"number"===i.type(n)&&(l.padding=[n,n,n,n]);l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});l.autoSize&&(l.autoWidth=l.autoHeight=!0);"auto"===l.width&&(l.autoWidth=!0);"auto"===l.height&&(l.autoHeight=!0);l.group=j.group;l.index=b;j.coming=l;if(!1===j.trigger("beforeLoad")){j.coming=null}else{n=l.type;f=l.href;if(!n){return j.coming=null,j.current&&j.router&&"jumpto"!==j.router?(j.current.index=b,j[j.router](j.direction)):!1}j.isActive=!0;if("image"===n||"swf"===n){l.autoHeight=l.autoWidth=!1,l.scrolling="visible"}"image"===n&&(l.aspectRatio=!0);"iframe"===n&&A&&(l.scrolling="scroll");l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(A?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body");i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)});i.each(["Top","Right","Bottom","Left"],function(q,p){l.skin.css("padding"+p,m(l.padding[q]))});j.trigger("onReady");if("inline"===n||"html"===n){if(!l.content||!l.content.length){return j._error("content")}}else{if(!f){return j._error("href")}}"image"===n?j._loadImage():"ajax"===n?j._loadAjax():"iframe"===n?j._loadIframe():j._afterLoad()}},_error:function(b){i.extend(j.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:b,content:j.coming.tpl.error});j._afterLoad()},_loadImage:function(){var b=j.imgPreload=new Image;b.onload=function(){this.onload=this.onerror=null;j.coming.width=this.width/j.opts.pixelRatio;j.coming.height=this.height/j.opts.pixelRatio;j._afterLoad()};b.onerror=function(){this.onload=this.onerror=null;j._error("image")};b.src=j.coming.href;!0!==b.complete&&j.showLoading()},_loadAjax:function(){var b=j.coming;j.showLoading();j.ajaxLoad=i.ajax(i.extend({},b.ajax,{url:b.href,error:function(f,l){j.coming&&"abort"!==l?j._error("ajax",f):j.hideLoading()},success:function(l,f){"success"===f&&(b.content=l,j._afterLoad())}}))},_loadIframe:function(){var b=j.coming,f=i(b.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",A?"auto":b.iframe.scrolling).attr("src",b.href);i(b.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(l){}});b.iframe.preload&&(j.showLoading(),f.one("load",function(){i(this).data("ready",1);A||i(this).bind("load.fb",j.update);i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();j._afterLoad()}));b.content=f.appendTo(b.inner);b.iframe.preload||j._afterLoad()},_preloadImages:function(){var b=j.group,q=j.current,p=b.length,r=q.preload?Math.min(q.preload,p-1):0,n,l;for(l=1;l<=r;l+=1){n=b[(q.index+l)%p],"image"===n.type&&n.href&&((new Image).src=n.href)}},_afterLoad:function(){var b=j.coming,q=j.current,p,r,f,n,l;j.hideLoading();if(b&&!1!==j.isActive){if(!1===j.trigger("afterLoad",b,q)){b.wrap.stop(!0).trigger("onReset").remove(),j.coming=null}else{q&&(j.trigger("beforeChange",q),q.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());j.unbindEvents();p=b.content;r=b.type;f=b.scrolling;i.extend(j,{wrap:b.wrap,skin:b.skin,outer:b.outer,inner:b.inner,current:b,previous:q});n=b.href;switch(r){case"inline":case"ajax":case"html":b.selector?p=i("
").html(p).find(b.selector):y(p)&&(p.data("fancybox-placeholder")||p.data("fancybox-placeholder",i('
').insertAfter(p).hide()),p=p.show().detach(),b.wrap.bind("onReset",function(){i(this).find(p).length&&p.hide().replaceAll(p.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":p=b.tpl.image.replace("{href}",n);break;case"swf":p='',l="",i.each(b.swf,function(t,s){p+='';l+=" "+t+'="'+s+'"'}),p+='"}(!y(p)||!p.parent().is(b.inner))&&b.inner.append(p);j.trigger("beforeShow");b.inner.css("overflow","yes"===f?"scroll":"no"===f?"hidden":f);j._setDimension();j.reposition();j.isOpen=!1;j.coming=null;j.bindEvents();if(j.isOpened){if(q.prevMethod){j.transitions[q.prevMethod]()}}else{i(".fancybox-wrap").not(b.wrap).stop(!0).trigger("onReset").remove()}j.transitions[j.isOpened?b.nextMethod:b.openMethod]();j._preloadImages()}}},_setDimension:function(){var ad=j.getViewport(),ab=0,aa=!1,ac=!1,aa=j.wrap,W=j.skin,Z=j.inner,Y=j.current,ac=Y.width,X=Y.height,V=Y.minWidth,K=Y.minHeight,U=Y.maxWidth,T=Y.maxHeight,N=Y.scrolling,R=Y.scrollOutside?Y.scrollbarWidth:0,l=Y.margin,f=h(l[1]+l[3]),P=h(l[0]+l[2]),I,b,L,O,S,J,Q,M,w;aa.add(W).add(Z).width("auto").height("auto").removeClass("fancybox-tmp");l=h(W.outerWidth(!0)-W.width());I=h(W.outerHeight(!0)-W.height());b=f+l;L=P+I;O=z(ac)?(ad.w-b)*h(ac)/100:ac;S=z(X)?(ad.h-L)*h(X)/100:X;if("iframe"===Y.type){if(w=Y.content,Y.autoHeight&&1===w.data("ready")){try{w[0].contentWindow.document.location&&(Z.width(O).height(9999),J=w.contents().find("body"),R&&J.css("overflow-x","hidden"),S=J.outerHeight(!0))}catch(E){}}}else{if(Y.autoWidth||Y.autoHeight){Z.addClass("fancybox-tmp"),Y.autoWidth||Z.width(O),Y.autoHeight||Z.height(S),Y.autoWidth&&(O=Z.width()),Y.autoHeight&&(S=Z.height()),Z.removeClass("fancybox-tmp")}}ac=h(O);X=h(S);M=O/S;V=h(z(V)?h(V,"w")-b:V);U=h(z(U)?h(U,"w")-b:U);K=h(z(K)?h(K,"h")-L:K);T=h(z(T)?h(T,"h")-L:T);J=U;Q=T;Y.fitToView&&(U=Math.min(ad.w-b,U),T=Math.min(ad.h-L,T));b=ad.w-f;P=ad.h-P;Y.aspectRatio?(ac>U&&(ac=U,X=h(ac/M)),X>T&&(X=T,ac=h(X*M)),acb||f>P)&&(ac>V&&X>K)&&!(19U&&(ac=U,X=h(ac/M)),Z.width(ac).height(X),aa.width(ac+l),ad=aa.width(),f=aa.height()}}else{ac=Math.max(V,Math.min(ac,ac-(ad-b))),X=Math.max(K,Math.min(X,X-(f-P)))}}R&&("auto"===N&&Xb||f>P)&&ac>V&&X>K;ac=Y.aspectRatio?acK&&X
').appendTo(j.coming?j.coming.parent:b.parent);this.fixed=!1;b.fixed&&j.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(b){var f=this;b=i.extend({},this.defaults,b);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(b);this.fixed||(g.bind("resize.overlay",i.proxy(this.update,this)),this.update());b.closeClick&&this.overlay.bind("click.overlay",function(l){if(i(l.target).hasClass("fancybox-overlay")){return j.isActive?j.close():f.close(),!1}});this.overlay.css(b.css).show()},close:function(){var l,f;g.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),l=g.scrollTop(),f=g.scrollLeft(),this.el.removeClass("fancybox-lock"),g.scrollTop(l).scrollLeft(f));i(".fancybox-overlay").remove().hide();i.extend(this,{overlay:null,fixed:!1})},update:function(){var l="100%",f;this.overlay.width(l).height("100%");o?(f=Math.max(x.documentElement.offsetWidth,x.body.offsetWidth),e.width()>f&&(l=e.width())):e.width()>g.width()&&(l=e.width());this.overlay.width(l).height(e.height())},onReady:function(l,f){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0);n||this.create(l);l.locked&&(this.fixed&&f.fixed)&&(n||(this.margin=e.height()>g.height()?i("html").css("margin-right").replace("px",""):!1),f.locked=this.overlay.append(f.wrap),f.fixed=!1);!0===l.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(l,f){var n,p;f.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=g.scrollTop(),p=g.scrollLeft(),this.el.addClass("fancybox-lock"),g.scrollTop(n).scrollLeft(p));this.open(l)},onUpdate:function(){this.fixed||this.update()},afterClose:function(b){this.overlay&&!j.coming&&this.overlay.fadeOut(b.speedOut,i.proxy(this.close,this))}};j.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(b){var l=j.current,f=l.title,n=b.type;i.isFunction(f)&&(f=f.call(l.element,l));if(c(f)&&""!==i.trim(f)){l=i('
'+f+"
");switch(n){case"inside":n=j.skin;break;case"outside":n=j.wrap;break;case"over":n=j.inner;break;default:n=j.skin,l.appendTo("body"),o&&l.width(l.width()),l.wrapInner(''),j.current.margin[2]+=Math.abs(h(l.css("margin-bottom")))}l["top"===b.position?"prependTo":"appendTo"](n)}}};i.fn.fancybox=function(b){var n,l=i(this),p=this.selector||"",f=function(v){var t=i(this).blur(),s=n,r,q;!v.ctrlKey&&(!v.altKey&&!v.shiftKey&&!v.metaKey)&&!t.is(".fancybox-wrap")&&(r=b.groupAttr||"data-fancybox-group",q=t.attr(r),q||(r="rel",q=t.get(0)[r]),q&&(""!==q&&"nofollow"!==q)&&(t=p.length?i(p):l,t=t.filter("["+r+'="'+q+'"]'),s=t.index(this)),b.index=s,!1!==j.open(t,b)&&v.preventDefault())};b=b||{};n=b.index||0;!p||!1===b.live?l.unbind("click.fb-start").bind("click.fb-start",f):e.undelegate(p,"click.fb-start").delegate(p+":not('.fancybox-item, .fancybox-nav')","click.fb-start",f);this.filter("[data-fancybox-start=1]").trigger("click");return this};e.ready(function(){var b,l;i.scrollbarWidth===u&&(i.scrollbarWidth=function(){var p=i('
').appendTo("body"),n=p.children(),n=n.innerWidth()-n.height(99).innerWidth();p.remove();return n});if(i.support.fixedPosition===u){b=i.support;l=i('
').appendTo("body");var f=20===l[0].offsetTop||15===l[0].offsetTop;l.remove();b.fixedPosition=f}i.extend(j.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")});b=i(a).width();k.addClass("fancybox-lock-test");l=i(a).width();k.removeClass("fancybox-lock-test");i("").appendTo("head")})})(window,document,jQuery); /*! * Thumbnail helper for fancyBox * version: 1.0.7 (Mon, 01 Oct 2012) * @requires fancyBox v2.0 or later * * Usage: * $(".fancybox").fancybox({ * helpers : { * thumbs: { * width : 50, * height : 50 * } * } * }); * */ (function(b){var a=b.fancybox;a.helpers.thumbs={defaults:{width:50,height:50,position:"bottom",source:function(d){var c;if(d.element){c=b(d.element).find("img").attr("src")}if(!c&&d.type==="image"&&d.href){c=d.href}return c}},wrap:null,list:null,width:0,init:function(f,i){var e=this,g,c=f.width,h=f.height,d=f.source;g="";for(var j=0;j'}this.wrap=b('
').addClass(f.position).appendTo("body");this.list=b("
    "+g+"
").appendTo(this.wrap);b.each(i.group,function(l){var k=d(i.group[l]);if(!k){return}b("").load(function(){var q=this.width,m=this.height,p,n,o;if(!e.list||!q||!m){return}p=q/c;n=m/h;o=e.list.children().eq(l).find("a");if(p>=1&&n>=1){if(p>n){q=Math.floor(q/n);m=h}else{q=c;m=Math.floor(m/p)}}b(this).css({width:q,height:m,top:Math.floor(h/2-m/2),left:Math.floor(c/2-q/2)});o.width(c).height(h);b(this).hide().appendTo(o).fadeIn(300)}).attr("src",k)});this.width=this.list.children().eq(0).outerWidth(true);this.list.width(this.width*(i.group.length+1)).css("left",Math.floor(b(window).width()*0.5-(i.index*this.width+this.width*0.5)))},beforeLoad:function(c,d){if(d.group.length<2){d.helpers.thumbs=false;return}d.margin[c.position==="top"?0:2]+=((c.height)+15)},afterShow:function(c,d){if(this.list){this.onUpdate(c,d)}else{this.init(c,d)}this.list.children().removeClass("active").eq(d.index).addClass("active")},onUpdate:function(c,d){if(this.list){this.list.stop(true).animate({left:Math.floor(b(window).width()*0.5-(d.index*this.width+this.width*0.5))},150)}},beforeClose:function(){if(this.wrap){this.wrap.remove()}this.wrap=null;this.list=null;this.width=0}}}(jQuery));(function(b){if(typeof define==="function"&&define.amd){define(["jquery"],b)}else{b(window.jQuery||window.Zepto)}}(function(k){var i=[],g={},j=/^([a-z]:)?\/\//i,l=/\.\w+$/,h;g.init=function(a){a=k.extend({ping:null,dimensions:"preserve",glue:"_",skipExtensions:["svg"]},a);this.each(function(){var c=k(this);if(!c.is("img")||c.hasClass("dense-image")){return}c.addClass("dense-image dense-loading");var d=g.getImageAttribute.call(this),e=c.attr("src"),b=false,f;if(!d){if(!e||h===1||k.inArray(e.split(".").pop().split(/[\?\#]/).shift(),a.skipExtensions)!==-1){c.removeClass("dense-image dense-loading");return}d=e.replace(l,function(n){return a.glue+h+"x"+n});b=a.ping!==false&&k.inArray(d,i)===-1&&(a.ping===true||!j.test(d)||d.indexOf("//"+document.domain)===0||d.indexOf(document.location.protocol+"//"+document.domain)===0)}f=function(){var n=function(){c.removeClass("dense-loading").addClass("dense-ready").trigger("denseRetinaReady.dense")};c.attr("src",d);if(a.dimensions==="update"){c.dense("updateDimensions").one("denseDimensionChanged",n)}else{if(a.dimensions==="remove"){c.removeAttr("width height")}n()}};if(b){k.ajax({url:d,type:"HEAD"}).done(function(s,r,t){var q=t.getResponseHeader("Content-type");if(!q||q.indexOf("image/")===0){i.push(d);f()}})}else{f()}});return this};g.updateDimensions=function(){return this.each(function(){var c,b=k(this),a=b.attr("src");if(a){c=new Image();c.src=a;k(c).on("load.dense",function(){b.attr({width:c.width,height:c.height}).trigger("denseDimensionChanged.dense")})}})};g.devicePixelRatio=function(){var a=1;if(k.type(window.devicePixelRatio)!=="undefined"){a=window.devicePixelRatio}else{if(k.type(window.matchMedia)!=="undefined"){k.each([1.3,2,3,4,5,6],function(d,c){var b=["(-webkit-min-device-pixel-ratio: "+c+")","(min-resolution: "+Math.floor(c*96)+"dpi)","(min-resolution: "+c+"dppx)"].join(",");if(!window.matchMedia(b).matches){return false}a=c})}}return Math.ceil(a)};g.getImageAttribute=function(){var a=k(this).eq(0),b=false,d;for(var c=1;c<=h;c++){d=a.attr("data-"+c+"x");if(d){b=d}}return b};h=g.devicePixelRatio();k.fn.dense=function(a,b){if(k.type(a)!=="string"||k.type(g[a])!=="function"){b=a;a="init"}return g[a].call(this,b)};k(function(){k("body.dense-retina img").dense()})}));!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"undefined"!=typeof exports?module.exports=b(require("jquery")):b(jQuery)}(function(d){var c=window.Slick||{};c=function(){function e(i,h){var b,g=this;g.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:d(i),appendDots:d(i),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(f,j){return d('